import request from '@/utils/request'

export default {
    // 获取问题列表
    getQuestionListPage(current, limit, questionQuery) {
        return request({
            // url: '/taxation/question/getQuestionListPage/' + current + '/' + limit,
            url: `/taxation/question/getQuestionListPage/${current}/${limit}`,
            method: 'post',
            data: questionQuery
        })
    },
    // 根据问答Id删除问答
    deleteQuestionById(id) {
        return request({
            url: `/taxation/question/deleteQuestionById/${id}`,
            method: 'delete',
        })
    },
    // 添加问题
    addAnswerInfo(questionInfo) {
        return request({
            url: `/taxation/question/addAnswerInfo`,
            method: 'post',
            data: questionInfo
        })
    },
    // 修改问题
    updateAnswerInfo(questionInfo) {
        return request({
            url: `/taxation/question/updateAnswerInfo`,
            method: 'post',
            data: questionInfo
        })
    },
    // 根据id查询问答
    getQuestionInfoId(questionId) {
        return request({
            url: `/taxation/question/getQuestionInfoId/${questionId}`,
            method: 'get',
        })
    }
}

